"use client"
import { useEffect } from "react"
export default function Hello() {
  useEffect(() => {
    (async () => {
      const res = await fetch("/api/hello")
      const data = await res.json()
      console.log(data)
    })()
  }, [])
  return <div>Hello</div>
}